package com.cjm.struts2.action;

/**
 * Created by jiaming.chen1 on 2015/6/25.
 */
public class ResultAction {
    private Integer number;

    public Integer getNumber() {
        return number;
    }

    public void setNumber(Integer number) {
        this.number = number;
    }

    public String execute(){
        if(number == 1){
            return "success";
        }
        else if(number == 2){
            return "index";
        }
        else if(number == 3){
            return "login";
        }
        else if(number == 4){
            return "error";
        }



        return null;

    }
}
